angular.module("userapp")
.controller('userCtrl', function($scope, $http, $routeParams){

	$routeParams.username = 'admin';
	$scope.users = [];
	$http.post(base_url + 'index.php/user').success(function(dat) {
		$scope.users = dat;
	});
});